using System;

namespace DAL.File
{
    public interface IFileAccess: IDisposable
    {
        string SharedRoot { get; }

        event EventHandler<FileChangedEvent> FileChangedEvent;

        byte[] ReadFile(string path);
        void WriteFile(string path, byte[] data);
        void DeleteFile(string path);
        string[] GetFolderContents(string path, bool onlyDirs);
        void SetFolderWatcher(string path);
    }
}